package br.com.iswe.gwt.ui.client.comp;

import br.com.iswe.gwt.util.client.FlatMap;

import com.google.gwt.user.client.ui.CheckBox;

public class CheckBoxBag extends CheckBox implements PropertiesBag{

	private FlatMap bean = FlatMap.getInstance();
	
	public CheckBoxBag(){
		super();
	}
	
	public CheckBoxBag(String label){
		super(label);
		setStyleName("gwt-Label");
	}
	
	public String getPropriedade(String chave) {
		return bean.getString(chave);
	}

	public void setPropriedade(String chave, String valor) {
		bean.put(chave, valor);
	}

	public void setBean(FlatMap bean) {
		this.bean.putAll( bean );
	}

	public FlatMap getBean() {
		return bean;
	}
	
}
